﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _024_第二十四章_职责链模式.NewFolder1
{
    abstract class Handler
    {
        protected Handler successor; //后继者
        public void SetSuccessor(Handler handler)
        {
            successor = handler;
        }

        public abstract void HandleRequest(int request);
    }
}
